package com.wuage.interfaces.permission.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author Shynin
 * @version 1.0
 * @date 9/29/21 10:45 AM
 */
@Data
@ApiModel("权限对象")
public class PermissionVO {
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("权限类型 MENU or BUTTON")
    private String type;

    @ApiModelProperty("级别 仅用于菜单 1、2、3代表一二三级菜单")
    private Integer level;

    @ApiModelProperty("权限名字")
    private String menuName;

    @ApiModelProperty("上级权限id")
    private Long parentId;

    @ApiModelProperty("描述")
    private String description;

    @ApiModelProperty("按钮权限标志 菜单可为空")
    private String permit;

    @ApiModelProperty("前端路由")
    private String frontUrl;

    @ApiModelProperty("图标url")
    private String iconUrl;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;
}
